package org.brisling.sysman.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

import org.activiti.engine.task.Task;
import org.brisling.base.domain.impl.BaseFlowDomain;
import org.brisling.base.domain.inf.BaseFlowDomainInf;
import org.brisling.common.ConstSysParam;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * Bug entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name=ConstSysParam.MODULE_BUG)
@DynamicUpdate(true)
@DynamicInsert(true)
public class SysBugs extends BaseFlowDomain implements BaseFlowDomainInf
{
	
	
	//发现人
	private Long finderid;
	
	private String finderName;
	
	//缺陷类型
	private String bugType;
	
	//缺陷内容
	private String bugContent;
	
	//发现时间
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date findTime;
	
	//处理人
	private Long checkerid;
	
	private String checkerName;
	
	//处理时间
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date checkerTime;
	
	//处理内容
	private String checkContent;
	
	//确认人
	private Long accepterid;
	
	private String accepterName;
	
	//确认时间
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date acceptTime;
	
	//确认内容
	private String acceptContent;
	//
	private String status;
	
	@Transient
	private Task task;

	public Task getTask() {
		return task;
	}

	public void setTask(Task task) {
		this.task = task;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Long getFinderid() {
		return finderid;
	}

	public void setFinderid(Long finderid) {
		this.finderid = finderid;
	}

	public String getFinderName() {
		return finderName;
	}

	public void setFinderName(String finderName) {
		this.finderName = finderName;
	}

	public String getBugType() {
		return bugType;
	}

	public void setBugType(String bugType) {
		this.bugType = bugType;
	}

	public String getBugContent() {
		return bugContent;
	}

	public void setBugContent(String bugContent) {
		this.bugContent = bugContent;
	}

	public Date getFindTime() {
		return findTime;
	}

	public void setFindTime(Date findTime) {
		this.findTime = findTime;
	}

	public Long getCheckerid() {
		return checkerid;
	}

	public void setCheckerid(Long checkerid) {
		this.checkerid = checkerid;
	}

	public String getCheckerName() {
		return checkerName;
	}

	public void setCheckerName(String checkerName) {
		this.checkerName = checkerName;
	}

	public Date getCheckerTime() {
		return checkerTime;
	}

	public void setCheckerTime(Date checkerTime) {
		this.checkerTime = checkerTime;
	}

	public String getCheckContent() {
		return checkContent;
	}

	public void setCheckContent(String checkContent) {
		this.checkContent = checkContent;
	}

	public Long getAccepterid() {
		return accepterid;
	}

	public void setAccepterid(Long accepterid) {
		this.accepterid = accepterid;
	}

	public String getAccepterName() {
		return accepterName;
	}

	public void setAccepterName(String accepterName) {
		this.accepterName = accepterName;
	}

	public Date getAcceptTime() {
		return acceptTime;
	}

	public void setAcceptTime(Date acceptTime) {
		this.acceptTime = acceptTime;
	}

	public String getAcceptContent() {
		return acceptContent;
	}

	public void setAcceptContent(String acceptContent) {
		this.acceptContent = acceptContent;
	}	
	
	

}